<script>
import { reactive } from "@vue/reactivity";
import { useSearchCar } from "./useSearchCar";
export default {
  name: "HkAddCar",
  components: {},
  setup() {
    const state = reactive({});

    const searchCarHook = useSearchCar(state);
    return () => {
      return <tz-view class="hk-addCar">{searchCarHook()}</tz-view>;
    };
  },
};
</script>

<style lang="scss">
.hk-addCar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  .section {
    width: 100%;
    margin-bottom: 10px;
    background: $white;
    @extend %bt1;
    .tz-cell {
      padding: 0 15px;
      line-height: 60px;
      .tz-cell-value {
        flex-direction: row-reverse;
      }
    }
  }
  .search {
    text-align: center;
    width: 100%;
    .search-form {
      width: 100%;
      .search-input {
        display: inline-flex;
        align-items: center;
        border: 1px solid $border_color;
        height: 30px;
        line-height: 30px;
        background-color: $white;
        border-radius: 4px;
        margin-right: 10px;
        .tz-icon {
          vertical-align: middle;
          margin: 0 5px;
          font-size: $font-size-2;
        }
        .tz-input {
          padding-right: 0;
          text-align: left;
        }
      }
      text {
        color: $primary-color;
        line-height: 30px;
        vertical-align: top;
      }
    }
    .car-list {
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
      padding: 0 15px;
      text {
        border: 1px solid $border_color;
        background-color: $white;
        margin: 10px 0;
        padding: 5px 15px;
        border-radius: 25px;
        display: block;
      }
      .selected {
        background-color: $primary-color;
        color: $white;
      }
    }
  }

  .car-form {
    width: 100%;
    padding: 0 15px;
    margin-top: 5px;
    background: $white;
    @extend %bt1;
    @extend %bb1;
  }
  .btn-view {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 15px;
    margin-top: 20px;
  }
}
</style>
